package com.shycloud.mido.member.controller;

import com.shycloud.mido.common.core.util.R;
import com.shycloud.mido.member.service.WxMiniService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

@RestController
@AllArgsConstructor
@RequestMapping("mini")
@ApiIgnore
public class WxMiniController {

	/** 会员业务 service */
	private WxMiniService wxMiniService;

	@GetMapping("bindPhone")
	public R bindPhone(String phone, String code, String openId, String nickName, String header) {
		return new R(wxMiniService.bindPhone(phone, code, openId, nickName, header));
	}

}
